<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" isELIgnored="false"%>
<html>
<head>
    <%@ include file="static_res.jsp"%>
    <title>用户主页</title>
    <script>
        $(function () {
            $("#m0").addClass("active");


        })
    </script>

</head>
<body>
<%@ include file="header.jsp"%>
<div class="container">
    <%--3,9布局--%>
    <div class="row">
        <%@include file="userMenu.jsp"%>

        <%--9 start--%>
        <div class="col s9">

            <div class="row"></div>
            <c:forEach items="${Pager.list}" var="art">
                <div class = "row bottom0">
                    <div class="card horizontal hoverable col s8 offset-s2">
                        <div class="card-stacked">
                            <div class="card-content">
                                <div class="card-title">${art.title}
                                    <span class="right">${art.createTime}</span>
                                </div>
                                <p class="truncate">${art.abst}</p>
                            </div>
                            <div class="card-action">
                                <a href="<%=path%>/article/getArticle?aid=${art.id}">阅读全文</a>
                            </div>
                        </div>
                    </div>
                </div>

            </c:forEach>
            <div class = "row">
                <ul class="pagination center ">
                    <li class="waves-effect "><a id="home" href="<%=path%>/article/articleInfo?pageNo=${1}" >首页</a></li>
                    <li class="waves-effect "><a id="pre" href="<%=path%>/article/articleInfo?pageNo=${Pager.pageNo-1}">上一页</a></li>
                    <li class="waves-effect "><a href="#!">第${Pager.pageNo}/${Pager.pageTotal}页</a></li>
                    <li class="waves-effect "><a id="next" href="<%=path%>/article/articleInfo?pageNo=${Pager.pageNo+1}" >下一页</a></li>
                    <li class="waves-effect "><a id="end" href="<%=path%>/article/articleInfo?pageNo=${Pager.pageTotal}" >尾页</a></li>
                </ul>
            </div>

        </div> <%--9 end--%>
    </div><%--3,9 row end--%>
</div>

</body>
</html>
